package com.autologistics.service;

import java.sql.Timestamp;
import java.util.List;

import com.autologistics.model.Ordertable;
import com.autologistics.util.PageBean;

public interface OrdertableService {
	/**
	 * @return ������ or null
	 * @author cl
	 */
	public List<Ordertable> listAll();
	public int save(Ordertable orderTable);
	public Ordertable getByOrderID(String orderID);
	public Ordertable getById(int id);
	public void updata(Ordertable orderTable);
	public List<Ordertable> listAllByUser(int user);
	public PageBean queryForOnePage(final int pageSize, int page,int allow);
	public PageBean queryForOnePageUser(final int pageSize, int page,int allRow,int user);
	public PageBean searchOrdertableIdUser(final int pageSize, int page,String id,int user);
	public PageBean searchOrdertableId(final int pageSize, int page,String id);
	public PageBean searchDisparterUser(final int pageSize, int page,String name,int user);
	public PageBean searchDisparter(final int pageSize, int page,String name);
	public PageBean searchState(final int pageSize, int page,String num);
	public PageBean searchTime(final int pageSize, int page,Timestamp time1,Timestamp time2);
	public PageBean searchTimeUser(final int pageSize, int page,Timestamp time1,Timestamp time2,int user);
	public PageBean GoodsCount(final int pageSize, int page);
	public PageBean searchStateUser(final int pageSize, int page,String num,int user);
}
